<!DOCTYPE html>
     <body>
		<script type="text/javascript">
		   var i=0;
		   while(i<100){
		      if(i%2 == 0){
		       document.write("<div style='background-color: blue'>&nbsp</div>");
			   }
			   else{
			   document.write("<div style='background-color: red'>&nbsp</div>");
			   }
			   i++;
		   }
		</script>
	 </body>
</html>